/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package messages;

/**
 *
 * @author Marko
 */
public class RegistrationRequest {

    private String ipAddress, ipHomeAddress, MACAddress, careOfAddress;
    private int associationLifetime;
    private boolean isAgent;

    public RegistrationRequest() {
    }

    public RegistrationRequest(boolean isAgent, String ipAddress, String ipHomeAddress, String mac, String care) {
        this.associationLifetime = 10000;
        this.ipAddress = ipAddress;
        this.ipHomeAddress = ipHomeAddress;
        this.MACAddress = mac;
        this.careOfAddress = care;
        this.isAgent = isAgent;



    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    public String getIpHomeAddress() {
        return ipHomeAddress;
    }

    public void setIpHomeAddress(String ipHomeAddress) {
        this.ipHomeAddress = ipHomeAddress;
    }

    @Override
    public String toString() {
        return "RegistrationRequest;" + this.ipAddress + ";" + this.ipHomeAddress + ";" + this.MACAddress + ";" + this.associationLifetime + ";" + this.careOfAddress+";"+this.isAgent;
    }

    /**
     * @return the MACAddress
     */
    public String getMACAddress() {
        return MACAddress;
    }

    /**
     * @param MACAddress the MACAddress to set
     */
    public void setMACAddress(String MACAddress) {
        this.MACAddress = MACAddress;
    }

    /**
     * @return the careOfAddress
     */
    public String getCareOfAddress() {
        return careOfAddress;
    }

    /**
     * @param careOfAddress the careOfAddress to set
     */
    public void setCareOfAddress(String careOfAddress) {
        this.careOfAddress = careOfAddress;
    }

    /**
     * @return the isAgent
     */
    public boolean isIsAgent() {
        return isAgent;
    }

    /**
     * @param isAgent the isAgent to set
     */
    public void setIsAgent(boolean isAgent) {
        this.isAgent = isAgent;
    }
}
